
<link href="<?php echo base_url()?>css/register.css" media="screen" rel="stylesheet" type="text/css" />
<link href="<?php echo base_url()?>css/validationEngine.jquery.css" media="screen" rel="stylesheet" type="text/css" />
<script src="<?php echo base_url()?>js/jquery.validationEngine.js" type="text/javascript"></script>
<script src="<?php echo base_url()?>js/jquery.validationEngine-en.js" type="text/javascript"></script>


<script>
    $().ready(function(){
        // binds form submission and fields to the validation engine
        jQuery("#register_form").validationEngine();
    });
    
</script>
<div class="register">
    
    <div>
        <?php echo isset($error) ? '<span class="form-msg-error">'.$error.'</span>' : '' ?>
        <?php echo validation_errors();?>
    </div>    
    
    <form id="register_form" method="post" >
        <table>
            <tr>
                <td>Email</td>
                <td><input type="text"  name="email" id="email" class="validate[required,custom[email]] text-input" /></td>    
            </tr>
            <tr>
                <td>Password</td>
                <td><input type="password"  id="password" name="password" class="validate[required,length[6,11]] text-input"  /></td>    
            </tr>
            
            
            <tr>
                <td></td>
                <td><input type="submit"  name="submit" value="Login" /></td>    
            </tr>
        </table>    
        
    </form>
</div>